import request from '@/utils/request'

export function constructionUnit(query) {
  return request({
    url: '/pk-retirement/elderly-oriented/construction-unit/list',
    method: 'get',
    params: query
  })
}


export function constructionUnitDel(jobId) {
  return request({
    url: '/pk-retirement/elderly-oriented/construction-unit/delete',
    method: 'delete',
    data:jobId
  })
}


export function constructionUnitSave(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/construction-unit/save',
    method: 'post',
    data: data
  })
}
export function constructionUnitUpdata(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/construction-unit/update',
    method: 'put',
    data: data
  })
}


export function elderlyOrientedRemodel(query) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/list',
    method: 'get',
    params: query
  })
}

export function elderlyOrientedRemodelInfo(id) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/info/'+id,
    method: 'get',
  })
}

export function productList(id) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel-product/get-elderly-oriented-product-list/'+id,
    method: 'get',
  })
}


export function getProductSelectOptionsAPI() {
  return request({
    url: '/pk-retirement/base-setting/elderly-oriented-product/get-product-select-options',
    method: 'get'
  });
}


export function deviceModel(query) {
  return request({
    url: '/pk-iot/iot/devicemodel/get-device-model-select-options',
    method: 'get',
    params: query
  })
}


export function elderlyOrientedRemodelProductSave(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel-product/save',
    method: 'post',
    data: data
  })
}
export function elderlyOrientedRemodelProductUpdata(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel-product/update',
    method: 'put',
    data: data
  })
}


export function elderlyOrientedRemodelProductDel(jobId) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel-product/delete',
    method: 'delete',
    data:jobId
  })
}

export function elderlyOrientedRemodelSave(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/save',
    method: 'post',
    data: data
  })
}


export function getRemodelCheckAcceptList(query) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/get-remodel-check-accept-list',
    method: 'get',
    params: query
  })
}


export function updateCheckAcceptInfo(data) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/update-check-accept-info',
    method: 'put',
    data: data
  })
}


export function getRemodelStep(query) {
  return request({
    url: '/pk-retirement/elderly-oriented/elderly-oriented-remodel/get-remodel-step',
    method: 'get',
    params: query
  })
}
